// import XEUtils from 'xe-utils'

export default {
  data() {
    return {

      // 拟合频率-分 1-60 * 
      exct_fqc_minute_options:[],
      // 拟合频率-时 1-24 *
      exct_fqc_hour_options:[],
      // 拟合频率-天 1-31 *
      exct_fqc_day_options:[],
      // 拟合频率-星期 1-7  
      exct_fqc_week_options:[],
      // 拟合频率-月 1-12 
      exct_fqc_month_options:[],

    }
  },
  created() {
    // 初始化拟合频率选项的值
    this.exct_fqc_minute_options = this.getArrayValueByMaximum(60)
    this.exct_fqc_hour_options = this.getArrayValueByMaximum(24)
    this.exct_fqc_day_options = this.getArrayValueByMaximum(31)
    this.exct_fqc_week_options = this.getArrayValueByMaximum(7)
    this.exct_fqc_month_options = this.getArrayValueByMaximum(12)
  },
  mounted() {
  },
  activated() {
  },
  beforeDestroy() {
  },
  deactivated() {
  },
  methods: {

    getArrayValueByMaximum(maxVal){
      const arrRes = [{
        value: '*',
        label: '默认'
      }]
      for (let i = 1; i <= maxVal; i++) {
        arrRes.push({
          value: String(i),
          label: String(i)
        })
      }
      return arrRes
    }

  } // method-end
}
